package com.sj.purchase.modules.cost.domain.order;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 出库订单详细
 * Created by icodebug on 17-7-16.
 */
@Entity
@Table(name = "t_out_order_details")
public class OutOrderItem extends OrderItem {

    @ManyToOne
    private OutOrder order;

    private Double totalPrice;//总价

    public OutOrder getOrder() {
        return order;
    }

    public void setOrder(OutOrder order) {
        this.order = order;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "OutOrderItem{" +
                "order=" + order +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
